/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

package service;
import myUtils.page.Result;
import po.Organization;
import po.User;
import po.Userorgrelation;
/**
 *
 * @author luyang
 */
public interface OrgService
{
    void addOrg(Organization org);
    void deleteOrg(int id);
    void updateOrg(Organization org);
    Organization getOrg(int id);
    Result getCheckedOrg(int page);
    Result getUncheckedOrg(int page);
    Result getMembers(int id,int page);
    User getManagerOfOrg(int id);
    Result getUncheckedMembers(int id,int page);
    Result getCheckedMembers(int id,int page);

    boolean isLeader(int userId,int orgId);
    void deleteMemFromOrg(int userId,int orgId);
    void approveUser(Userorgrelation userorgrelation);
    boolean isMember(int userId, int orgId);
}
